<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../../javascript/jQuery1.7.js"></script>


<title>NewFile</title>
</head>

<body>
<form action="">
<input id="fileId" type="file" />

</form>
</body>
</html>
<script type="text/javascript">

window.onload=function(){
	alert("请上传文档！");
	setTimeout(function(){
		func();
	},500);
	
}

function func(){
		document.getElementById("fileId").click();
		/* var active=document.getElementById("fileId");
		var mouseEvent = document.createEvent("MouseEvents");//FF的处理 
		mouseEvent.initEvent("click", true, true);
		active.dispatchEvent(mouseEvent);  */
}



</script>